INSERT INTO in a CASE statement - SQL